<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="zh-cn" style="height: 100%">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <title><?=VIEW_TITLE?></title>
    <link href="<?php echo base_url('/assets/bs/'); ?>css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo base_url('/assets/css/'); ?>my_common.css" rel="stylesheet">
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
</head>
<body>
<?php
$this->load->view('simple_header.php');
?>
<div class="container-fluid">
    <div id="main_div" style="position:relative;max-width:800px;margin: 0 auto 10px auto;">
        <div id="text_div" style="overflow-x: hidden;margin: 0 auto 10px auto;">
            <div class="article_title">
                <h3 style="text-align: center;"><?php echo $article['title']; ?></h3>
            </div>
            <div class="article_content"><?php echo $article['article_html']; ?></div>
            <div class="article_url" style="background-color: #f5f5f5;padding:10px;word-break: break-all;">
                <span style="white-space: nowrap;">原文链接:</span><a href="<?php echo $article['url']; ?>"><?php echo $article['url']; ?></a>
            </div>

        </div>
    </div>
</div>
<!--<button type="button" class="btn btn-default" onclick="a()">Default</button>-->
<?php
$this->load->view('mfooter.php');
?>
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script src="<?php echo base_url('/assets/bs/'); ?>js/bootstrap.min.js"></script>
<script src="<?php echo base_url('/assets/js/'); ?>common.js"></script>
<script type="text/javascript" src="<?php echo base_url('/assets/ueditor/'); ?>ueditor.config.js"></script>
<script type="text/javascript" src="<?php echo base_url('/assets/ueditor/'); ?>ueditor.all.js"></script>
<script type="text/javascript">
    var w_width = document.documentElement.clientWidth;
    var w_height = document.documentElement.clientHeight;
    var main_div_height = w_height - 160;
//  $('#text_div').css('height', main_div_height + 'px');
</script>
</body>
</html>
